/**
 * meilele.com Inc.
 * Copyright (c) 2004-2016 All Rights Reserved.
 */
package com.gpagers.core;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TrayItem;

import com.gpagers.ui.EditNewTaskUi;
import com.gpagers.ui.TopDg;

/**
 * 
 * @author liuzijie@meilele.com
 * @version $Id: ObjectRef.java, v 0.1 2016年5月9日 下午4:14:59 liuzijie@meilele.com Exp $
 */
public class ObjectRef {

    public static String imagePath = "";
    public static String dataFile;
    public static final String voicePath="images/lgss.mp3";

    public static final String TRIGGER_GROUP = "trigger";
    public static final String JOB_GROUP     = "job";
    public static final String PAUSED        = "PAUSED";
    public static final String NORMAL        = "NORMAL";

    public static boolean  isMinAtCampo;
    public static TrayItem trayItem;

    public static final Display display;
    public static final Shell   mainShell;

    public static EditNewTaskUi currentEditorTask;

    public static Table table;

    public static List<String> triggerList;
    public static List<String> jobList;

    public static List<Label> tableStates;

    public static List<String> persisData;

    public static List<TopDg> dialogList;

    public static Image greenImage;
    public static Image redImage;
    public static Image blackImage;
    public static Image g1Image;
    public static Image g2Image;

    /**
     * 
     */
    public ObjectRef() {
        dataFile = "persistent.db";
        triggerList = new ArrayList<String>();
        tableStates = new ArrayList<Label>();
        persisData = new ArrayList<String>();
        dialogList = new ArrayList<TopDg>();
        jobList = new ArrayList<String>();

        greenImage = new Image(ObjectRef.display, "images/green.png");
        redImage = new Image(ObjectRef.display, "images/red.png");
        blackImage = new Image(ObjectRef.display, "images/black.png");
        g1Image = new Image(ObjectRef.display, "images/g1.png");
        g2Image = new Image(ObjectRef.display, "images/g2.png");
    }

    static {
        display = Display.getDefault();
        mainShell = new Shell();

    }
}
